const mongoose = require("mongoose");

mongoose.connect(
  "mongodb://medical:medical000111@81.70.145.13:27017/medical?authSource=medical"
);

const coon = mongoose.connection;

coon.on("open", () => {
  console.log("success");
});

coon.on("error", () => {
  console.log("err");
});

module.exports = mongoose;
